Skip to content

let devdocs rely ruby 4.0.3,no longer rely ruby 3.x#2680

Open
yzytom wants to merge 7 commits into
freeCodeCamp:mainfrom
yzytom:main
Open

let devdocs rely ruby 4.0.3,no longer rely ruby 3.x#2680
yzytom wants to merge 7 commits into
freeCodeCamp:mainfrom
yzytom:main

Conversation

@yzytom
Copy link
Copy Markdown

@yzytom yzytom commented Apr 21, 2026

If you’re adding a new scraper, please ensure that you have:

  • Tested the scraper on a local copy of DevDocs
  • Ensured that the docs are styled similarly to other docs on DevDocs
  • Added these files to the public/icons/your_scraper_name/ directory:
    • 16.png: a 16×16 pixel icon for the doc
    • 16@2x.png: a 32×32 pixel icon for the doc
    • SOURCE: A text file containing the URL to the page the image can be found on or the URL of the original image itself

If you're updating existing documentation to its latest version, please ensure that you have:

  • Updated the versions and releases in the scraper file
  • Ensured the license is up-to-date
  • Ensured the icons and the SOURCE file in public/icons/your_scraper_name/ are up-to-date if the documentation has a custom icon
  • Ensured self.links contains up-to-date urls if self.links is defined
  • Tested the changes locally to ensure:
    • The scraper still works without errors
    • The scraped documentation still looks consistent with the rest of DevDocs
    • The categorization of entries is still good

@yzytom yzytom requested a review from a team as a code owner April 21, 2026 10:54
@yzytom yzytom force-pushed the main branch 2 times, most recently from 5e5af94 to ac4d05e Compare April 22, 2026 06:47
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 22, 2026

@yzytom yzytom changed the title Ruby 4.X Edition let devdocs rely ruby 4.0.3,no longer rely ruby 3.x Apr 22, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to switch the project from Ruby 3.4.8 to Ruby 4.0.5 across the runtime/version pins and regenerates the Gemfile.lock accordingly. It also constrains html-pipeline to ~> 2.14, explicitly adds ostruct and webrick (libraries that have been extracted from the Ruby stdlib), and adds require 'ostruct' to the images filter test.

Changes:

  • Bump Ruby version pin to 4.0.5 in .ruby-version, Gemfile, Gemfile.lock, Dockerfile, and Dockerfile-alpine.
  • Add ostruct and webrick gem dependencies and constrain html-pipeline to ~> 2.14; regenerate Gemfile.lock (major upgrades of activesupport, sinatra, rack, etc., and platform-specific entries/CHECKSUMS).
  • Add require 'ostruct' to test/lib/docs/filters/core/images_test.rb.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.ruby-version Pins Ruby to 4.0.5.
Gemfile Updates Ruby pin to 4.0.5; adds ostruct and webrick; constrains html-pipeline to ~> 2.14.
Gemfile.lock Regenerated lockfile reflecting new Ruby version, multi-platform entries, CHECKSUMS, and upgraded gems.
Dockerfile Updates base image to ruby:4.0.5.
Dockerfile-alpine Updates base image to ruby:4.0.5-alpine.
test/lib/docs/filters/core/images_test.rb Adds explicit require 'ostruct' to support newer Ruby where it's no longer autoloaded.

Note: Ruby 4.0.5 does not exist as a released version, and no ruby:4.0.5 Docker images are published. The PR title/intent ("rely ruby 4.0.3") is also inconsistent with the actual 4.0.5 pin in the diff. Additionally, .tool-versions (ruby 3.4.8) and README.md (Ruby 3.4.1) still reference older 3.4.x versions and were not updated.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants